#include <iostream>
#include <string>
using namespace std;
bool flag = true;
string temp(long long unsigned int a)
{
    string s;
    long long unsigned int temp;
    while (a != 0)
    {
        temp = a % 2;
        a = a / 2;
        s.insert(0, to_string(temp));
    }
    string s_temp;
    s_temp = s.substr(s.size() - 6, 6);
    if (s_temp == "000000")
    {
        flag = false;
        return s;
    }
}
int main()
{
    long long unsigned int a = 2022;
    string res;
    while (flag)
    {
        res = temp(++a);
        cout << res << endl;
    }
    cout << res << "  " << a;
}